package com.yx.front.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yx.front.model.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author YangXiong
 * @since 2023-04-15
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    /**
     *  根据用户id 查询权限列表信息
     * @param userId 当前用户id
     * @return 权限列表信息
     */
    List<String> selectPermsByUserId(@Param("userId") Long userId);

}
